<template>
    <!--表格-->
  <div class="company2-table">
    <table class="c2-t" cellspacing="0">
      <!--企业设立名称预先核准-->
      <tr>
        <td colspan="4">
          <div class="t-1-d-d">
            <div class="t-1-d-d-1">

            </div>
            <div class="t-1-d-d-2 font">
              企业设立名称预先核准
            </div>
          </div>
        </td>
      </tr>
      <!--申请企业名-->
      <tr>
        <td class="font center">申请企业名</td>
        <td colspan="3" >
          <div class="m-01">
            {{$store.state.app.cp.fn}}
          </div>
        </td>
      </tr>
      <!--备选企业字号-->
      <tr>
        <td class="font center" :rowspan="$store.state.app.cp.sn.length">备选企业字号</td>
        <td colspan="3" v-show="$store.state.app.cp.sn.length>0">
          <div class="m-01">
            {{$store.state.app.cp.sn[0]}}
          </div>
        </td>
      </tr>
      <tr v-for="(item,index) in $store.state.app.cp.sn" v-if="index>0">
        <td colspan="3" v-show="index>0">
          <div class="m-01">
            {{item}}
          </div>
        </td>
      </tr>
      <!--企业所在地-->
      <tr>
        <td class="font center">企业所在地</td>
        <td colspan="3">
            <div class="m-01">
              <p>
                <u>{{$store.state.app.c.province}}</u>
                <span>
                  省（市/自治区）
                </span>
              </p>
              <p>
                <u>{{$store.state.app.c.city}}</u>
                <span>
                  市（地区/自治州）
                </span>
              </p>
              <p>
                <u>{{$store.state.app.c.town}}</u>
                <span>县（自治县/旗/市/区）</span>
              </p>
            </div>
        </td>
      </tr>
      <!--注册资本（金）-->
      <tr>
        <td class="font center">注册资本（金）</td>
        <td class="center">
          <div>
             <p>
               <u>{{$store.state.app.cp.money}}</u>
               <span class="font">万元</span>
             </p>
          </div>
        </td>
        <td class="font center">企业类型</td>
        <td class="center">
            {{$store.state.app.cp.type}}
        </td>
      </tr>
      <!--经营范围-->
      <tr>
        <td class="font center">经营范围</td>
        <td colspan="3">
          <div class="m-01">
            {{$store.state.app.cp.manage}}
          </div>

        </td>
      </tr>
      <!--法人-->
      <tr>
        <td :rowspan="$store.state.app.cp.legals.length+1"></td>
        <td class="font center">姓名</td>
        <td class="font center"colspan="2">证件号码</td>
      </tr>
      <tr v-for="(item,index) in $store.state.app.cp.legals">
        <td>
          <div class="m-01">
            {{item.name}}
          </div>
        </td>
        <td  colspan="2">
          <div class="m-01">
            {{item.idCard}}
          </div>
        </td>
      </tr>



    </table>
  </div>
</template>

<script>
    export default {
        name: "company2-table",
        data() {
            return {};
        },
        methods: {},

    }
</script>

<style lang="less" scoped>
@import "./less/company2-table";
</style>
